package ar.com.contable.ganancias.listener;

import org.eclipse.jface.viewers.ILabelProvider;
import org.eclipse.jface.viewers.LabelProvider;
import org.eclipse.swt.graphics.Image;
import org.eclipse.ui.ISharedImages;
import org.eclipse.ui.PlatformUI;

import ar.com.contable.ganancias.editor.View;

public class ViewLabelProvider extends LabelProvider implements ILabelProvider {
	/**
	 * 
	 */
	private final View ViewLabelProvider;

	/**
	 * @param view
	 */
	ViewLabelProvider(View view) {
		ViewLabelProvider = view;
	}

	public String getColumnText(Object obj, int index) {
		return getText(obj);
	}

	public Image getColumnImage(Object obj, int index) {
		return getImage(obj);
	}

	public Image getImage(Object obj) {
		return PlatformUI.getWorkbench().getSharedImages()
				.getImage(ISharedImages.IMG_OBJ_ELEMENT);
	}
}